<meta charset="UTF-8">
<script type="text/javascript">
	$(function(){
		$('#i_bksq_teacher').selectpicker({
			width:'fit'
		}); 
		$('#i_bksq_classroom').selectpicker({
			width:'fit'
		}); 
		
		//获取当前时间
		var date = new Date();   //得到的不是常规格式
		//转为常规格式
		var d = date.toLocaleString();
		//获取当前年
		var year = date.getFullYear();
		//获取当前月
		var month = date.getMonth()+1;
		//获取当前日
		var day = date.getDate();
		//获取当前小时
		var hours = date.getHours();
		//获取当前分钟
		var minutes = date.getMinutes();
		//获取当前秒
		var seconds = date.getSeconds();
		if(month < 10){
			month = 0+""+month;
		}
		if(day < 10){
			day = 0+""+day;
		}
		var dat = year+"-"+month+"-"+day;   //当前日期
		var dat1 = year+"-"+month+"-"+day+" "+hours+":"+minutes+":"+seconds;   //当前日期时间
		
		//开启公历节日
		laydate.render({
		  	elem: '#i_bksq_date',
		  	calendar: true,    //开启公历节日,标明节日
			value:dat,
			min:minDate()
		});
		// 设置最小可选的日期
		function minDate(){
		    var now = new Date();
		    return now.getFullYear()+"-" + (now.getMonth()+1) + "-" + now.getDate();
		 }
	})
</script>
	<div class="col-md-12 text-primary">
		<span  style="border-left: 7px solid green;font-size: 19px;padding-right: 10px;" >&nbsp;停课信息</span>
		<hr>
	</div>
	<form id="g_myForm">
	<div style="padding: 30px;">
		<input type="hidden" th:value="${id}" name="reason">
		<div class="input-group col-md-4"style="float: left; padding: 0px 10px 20px 0px;">
				<span class="input-group-addon ">停课时间</span> 
				<input type="text" class="form-control" readonly="readonly" th:value="${record.suspendTime}" name="suspendTime"/>
		</div>
		<div class="input-group col-md-4"style="float: left; padding: 0px 10px 20px 0px;">
				<span class="input-group-addon ">停课节次</span> 
				<input type="text" class="form-control" readonly="readonly" th:value="${record.section}" name="section"/>
		</div>
		<div class="input-group col-md-4"style="float: left; padding: 0px 10px 20px 0px;">
				<span class="input-group-addon ">年级</span> 
				<input type="text" class="form-control" readonly="readonly" th:value="${record.year}" name="year"/>
		</div>
		<div class="input-group col-md-4"style="float: left; padding: 0px 10px 20px 0px;">
				<span class="input-group-addon ">停课班级</span> 
				<input type="text" class="form-control" readonly="readonly" th:value="${record.tbClass}" name="tbClass"/>
		</div>
		<div class="input-group col-md-4"style="float: left; padding: 0px 10px 20px 0px;">
				<span class="input-group-addon ">停课课程</span> 
				<input type="text" class="form-control" readonly="readonly" th:value="${record.curriculum}" name="curriculum"/>
		</div>
		<div class="input-group col-md-4"style="float: left; padding: 0px 10px 20px 0px;">
				<span class="input-group-addon ">停课地点</span> 
				<input type="text" class="form-control"readonly="readonly" th:value="${record.classroom}" name="leaveType"/>
		</div>
		<div class="input-group col-md-4"style="float: left; padding: 0px 10px 20px 0px;">
				<span class="input-group-addon ">授课教师</span> 
				<input type="text" class="form-control"readonly="readonly" th:value="${record.teacher}" name="leaveType"/>
		</div>
		<div class="input-group col-md-4"style="float: left; padding: 0px 10px 20px 0px;">
				<span class="input-group-addon ">请假类型</span> 
				<input type="text" class="form-control"readonly="readonly" th:value="${record.leaveType}" name="leaveType"/>
		</div>
	</div>
	<hr />
	<input type="hidden" th:value="${record.ydrs}" name="ydrs">
	<input type="hidden" th:value="${record.zxs}" name="zxs">
	<input type="hidden" th:value="${record.ld}" name="ld">
	<input type="hidden" th:value="${record.lc}" name="lc">
	<div class="col-md-12 text-primary">
		<span  style="border-left: 7px solid green;font-size: 19px;padding-right: 10px;" >&nbsp;补课申请信息</span>
		<hr>
	</div>
	<div style="padding: 30px;">
			<input type="hidden" th:value="${record.id}" name="id">
			<div class="input-group col-md-3"style="float: left; padding: 0px 10px 20px 0px; ">
				<label class="input-group-addon" for="i_bksq_teacher" data-width="fit">补课老师</label>
				<select class="form-control" name="teacher" id="i_bksq_teacher"data-live-search="true">
					<option th:value="${record.teacher}" th:text="${record.teacher}" selected="selected" style="display: none;"></option>
					<option th:each="e:${teacherroom}" th:value="${e.username}" th:text="${e.name}"></option>
				</select>
			</div>
			<div class="input-group col-md-3"style="float: left; padding: 0px 10px 20px 0px;">
				<label class="input-group-addon" for="i_bksq_classroom">上课地点</label>
				<select class="form-control" name="address" id="i_bksq_classroom"data-live-search="true">
					<option th:value="${record.classroom}" th:text="${record.classroom}" selected="selected" style="display: none;"></option>
					<option th:each="c:${classroomlist}" th:text="${c.serialNumber}"></option>
				</select>
	
			</div>
			<div class="input-group  col-md-4"style="float: left; padding: 0px 10px 20px 0px;" >
				<label class="input-group-addon" for="i_bksq_date">补课时间</label>
				<input class="form-control" type="text" id="i_bksq_date" name="repairTime"placeholder="请输入补课时间">
				<span class="glyphicon glyphicon-calendar form-control-feedback" style="margin-right: 10px;"></span>
			</div>
			
			<div class="input-group col-md-2"style="float: left; padding: 0px 10px 20px 0px;">
				<label class="input-group-addon" for="i_bksq_jc">节次</label>
				<select class="form-control" name="jc" id="i_bksq_jc">
					<option selected="selected">1-2</option>
					<option>3-4</option>
					<option>5-6</option>
					<option>7-8</option>
					<option>9-10</option>
				</select>
			</div>
			
			
			
	</div>
			</form>	
		